package com.platform.service.impl;

import com.platform.service.ErrorOperateLogService;
import com.platform.dao.ErrorOperateLogDao;
import com.platform.domain.model.ErrorOperateLog;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
* ErrorOperateLog
*
* User: wangyang
* DateTime: 2012-10-08 16:11:58
*
*/
@Service("errorOperateLogService")
public class ErrorOperateLogServiceImpl implements ErrorOperateLogService {

    @Resource
    private ErrorOperateLogDao errorOperateLogDao;

    /**
    *
    * 根据主键查询ErrorOperateLog对象
    *
    * @param logId
    * @return ErrorOperateLog对象
    */
    @Override
    public ErrorOperateLog selectByPrimaryKey(String logId) throws Exception {
        return errorOperateLogDao.selectByPrimaryKey(logId);
    }

    /**
    *
    * 根据查询条件查询符合条件的ErrorOperateLog对象
    *
    * @param errorOperateLog
    * @return 符合条件的ErrorOperateLog对象List
    */
    @Override
    public List<ErrorOperateLog> select(ErrorOperateLog errorOperateLog) throws Exception {
        return errorOperateLogDao.select(errorOperateLog);
    }

    /**
    *
    * 根据主键删除ErrorOperateLog对象
    *
    * @param logId
    * @return 影响条件数
    */
    @Override
    public int deleteByPrimaryKey(String logId) throws Exception {
        return errorOperateLogDao.deleteByPrimaryKey(logId);
    }

    /**
    *
    * 根据条件删除符合条件的ErrorOperateLog对象
    *
    * @param errorOperateLog
    * @return 影响条件数
    */
    @Override
    public int delete(ErrorOperateLog errorOperateLog) throws Exception {
        return errorOperateLogDao.delete(errorOperateLog);
    }

    /**
    *
    * 插入ErrorOperateLog对象
    *
    * @param errorOperateLog
    * @return 影响条件数
    */
    @Override
    public int insert(ErrorOperateLog errorOperateLog) throws Exception {
        return errorOperateLogDao.insert(errorOperateLog);
    }

    /**
    *
    * 更新ErrorOperateLog对象
    *
    * @param errorOperateLog
    * @return 影响条件数
    */
    @Override
    public int update(ErrorOperateLog errorOperateLog) throws Exception {
        return errorOperateLogDao.update(errorOperateLog);
    }
}
